from django.conf.urls.defaults import patterns, url
from kalapankki.payment import views
urlpatterns = patterns('',
    url(r'^order/(?P<album_id>\d+)/(?P<page_number>\d+)/', views.order, name="order_album"),
    url(r'^success/(?P<user_id>\d+)/(?P<page_number>\d+)/', views.success, name="payment_success"),
    url(r'^error/(?P<user_id>\d+)/(?P<page_number>\d+)/', views.failure, {"resp_type":'error'},name="payment_error"),    
    url(r'^cancel/(?P<user_id>\d+)/(?P<page_number>\d+)/', views.failure, {"resp_type":'cancel'}, name="payment_cancel"),               
)    